home *** CD-ROM | disk | FTP | other *** search
/ 3D Images / 3D Images.iso / programs / amiga / rayshade / libshade / stats.h < prev    next >
C/C++ Source or Header  |  1995-01-12  |  2KB  |  55 lines

  1. /*
  2.  * stats.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * stats.h,v 4.1 1994/08/09 08:05:02 explorer Exp
  17.  *
  18.  * stats.h,v
  19.  * Revision 4.1  1994/08/09  08:05:02  explorer
  20.  * Bump version to 4.1
  21.  *
  22.  * Revision 1.1.1.1  1994/08/08  04:52:18  explorer
  23.  * Initial import.  This is a prerelease of 4.0.6enh3, or 4.1 possibly.
  24.  *
  25.  * Revision 4.0  91/07/17  14:47:46  kolb
  26.  * Initial version.
  27.  * 
  28.  */
  29. #ifndef STATS_H
  30. #define STATS_H
  31.  
  32. /*
  33.  * Statistics
  34.  */
  35. typedef struct RSStats {
  36.     unsigned long    EyeRays,    /* # of eye rays spawned */
  37.             ShadowRays,    /* # of shadow rays spawned */
  38.             ReflectRays,    /* # of reflected rays */
  39.             RefractRays,    /* # of refracted rays */
  40.             HitRays,    /* # of rays that hit something. */
  41.             BVTests,    /* # of bounding volume tests. */
  42.             SuperSampled,    /* # of supersampled pixels. */
  43.             ShadowHits,    /* # of shadow ray hits */
  44.             CacheHits,    /* # of shadow cache hits */
  45.             CacheMisses;    /* # of shadow cache misses */
  46.     Float        Utime,        /* User time */
  47.             Stime;        /* System time */
  48.     FILE        *fstats;    /* Stats/info file pointer. */
  49. } RSStats;
  50.  
  51. extern RSStats Stats;
  52. extern void StatsPrint(), StatsAddRep();
  53.  
  54. #endif /* STATS_H */
  55.